package com.toe.business.webapi.mapper;

import com.toe.pojo.dto.business.BusinessInformationTempDTO;
import com.toe.pojo.vo.business.BusinessInformationTempVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface   BusinessInformationTempMapper {
    // 申请
    int insertApplication(BusinessInformationTempDTO businessInformationTempDTO);
    // 查询申请表
    List<BusinessInformationTempVO> selectApplication();

    // 审核不通过根据id修改is_handled字段为2
    int forbidIsHandled(Long id);

    // 审核通过根据id修改is_handled字段为1
    int passIsHandled(Long id);
    // 查询本次审核通过的商家信息
    BusinessInformationTempVO selectPassApplication(Long id);
    // 本次审核通过的商家入驻
    int insertBusinessInformation(BusinessInformationTempVO businessInformationTempVO);
}
